package com.tutorial.io;

import java.io.InputStream;

/**
 * 资源类
 *
 * @author: GXW
 * @since: 2025-10-28 16:30:20
 **/
public class Resource {
    /**
     * 根据配置文件路径，将配置文件加载成字节输入流，存储在内存中
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path) {
        InputStream inputStream = Resource.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }
}
